﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/jui.Master" Inherits="System.Web.Mvc.ViewPage<Dictionary<string, object>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    公告信息_修改
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="layout" class="noNavTab">
        <div id="navTab">
            <div class="pageContent">
                <div class="pageFormContent nowrap" layouth="56">
                    <%   int id = Utils.StrToInt(ViewData["id"], 0);
                         using (Html.BeginEditForm(Database.Default, "Sys_Notice", id, "/Sys/List/?menu=Notice"))
                         {
                             Dictionary<string, object> d = Model;
    
                    %>
                    <dl>
                        <dt>公告标题：</dt>
                        <dd>
                            <input class="required textInput" type="text" name="t0_title" value="<%:d["title"] %>" />
                        </dd>
                    </dl>
                    <dl>
                        <dt>公告类型：</dt>
                        <dd>
                            <%
                         ViewDataDictionary vdd = new ViewDataDictionary();
                         vdd.Add("s", "t0_TypeID");
                         vdd.Add("selectId", d["typeid"].ToString());
                         Html.RenderPartial("~/Views/Shared/selectControl.ascx", selectControlBLL.getProType(8171), vdd); %>
                        </dd>
                    </dl>
                    <dl>
                        <dt>公告内容：</dt>
                        <dd>
                            <%:Html.TextArea("t0_Content", d["content"].ToString(), new { @class = "editor ", rows = "10", cols = "100"})%>
                        </dd>
                    </dl>
                    <dl class="nowrap">
                        <dt>&nbsp;&nbsp; </dt>
                        <dd>
                            <button type="submit">
                                修改公共信息</button>
                        </dd>
                    </dl>
                    <%} %>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
</asp:Content>
